const app = getApp();
Page({
  data: {
    tabIndex: 0
  },
  onLoad() {
    app._init_(this)
    this.gethotProduct();
  },

  // /appSysHome/find/hot
  gethotProduct() {
    app.other.home().then(res => {
      console.log(res);
      console.log(JSON.parse(res.data.hot));
      let prudects = JSON.parse(res.data.hot).prudects;
      this.setData({
        prudects
      });
    });
  },
  TabSelect(e) {
    this.setData({
      tabIndex: e.target.dataset.index
    });
  },
  // 跳转
  navigateTo(e){
    app.navigateTo(e)
},
});
